QRCodeBarcodeShape CodeSize
Gets or sets the size of the QR barcode shape.
public QRCodeSize CodeSize {get;Set} |
Return value
QRCodeSize | Size of the QR bar code |
Example
Copy
scanDocument = scanDeviceManager.CreateScanDocument(GetselectedDeviceUniqueName(), DistanceUnit.Millimeters, false);
if (scanDocument != null)
{
VectorImage vectorImage = scanDocument.CreateVectorImage("image1", DistanceUnit.Millimeters);
vectorImage.SetMarkSpeed(1000);
vectorImage.SetJumpSpeed(2000);
vectorImage.SetJumpDelay(100);
vectorImage.SetMarkDelay(100);
//Set Laser Delays
vectorImage.SetLaserOnDelay(10);
vectorImage.SetLaserOffDelay(10);
QRCodeBarcodeShape qrBarcode = new QRCodeBarcodeShape();
qrBarcode.Angle = 0;
qrBarcode.AutoExpand = true;
qrBarcode.CodeSize = QRCodeSize.S21x21;
qrBarcode.EncodingMode = QRCodeEncodingMode.Alphanumeric;
qrBarcode.ErrorCorrectionLevel = QRCodeErrorCorrectionLevel.H;
qrBarcode.FlipHorizontally = false;
qrBarcode.FlipVertically = false;
qrBarcode.Height = 5;
qrBarcode.InvertImage = false;
qrBarcode.Location = new Point3D(0, 0, 0);
qrBarcode.MarkingOrder = MarkingOrder.HatchBeforeOutline;
qrBarcode.MaskPattern = QRCodeMaskPattern.DefaultMaskPattern;
qrBarcode.QuietZone = false;
qrBarcode.Text = "SMAPI VER 4";
qrBarcode.HatchingDirection = BarcodeScanDirection.TopToBottom;
qrBarcode.HatchLineDirection = BarcodeScanDirection.LeftToRight;
qrBarcode.HatchPattern = BarcodeHatchPattern.CreateLineHatchPattern(0.5f, true, false);
vectorImage.AddBarcode(qrBarcode);
scanDocument.Scripts.Add(new ScanningScriptChunk("defaultScript", "ScanAll()"));
try
{
scanDocument.StartScanning();
}
catch
{
}
}